import { requestType } from '~/config/enum.config'

const SERVICE = 'domain-service'

const CONTROLLER = 'lightChannelController'
export default {
  /**
   * 新增队列
   */
  add: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'add',
    type: requestType.Post
  },
  /**
   * 发送渠道
   */
  getGradeById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getGradeById',
    type: requestType.Get
  },
  /**
   * 修改队列信息
   */
  update: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'update',
    type: requestType.Post
  },

  /**
   * 停用队列
   */
  updateStatus: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateStatus',
    type: requestType.Get
  },
  /**
   * 案件队列管理-分页查询队列信息
   */
  getAll: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAll',
    type: requestType.Get
  },
  /**
   * 案件队列管理-查看发送对象信息
   */
  view: {
    service: SERVICE,
    controller: CONTROLLER,
    // action: 'viewBusinessMessage',
    action: 'view',
    type: requestType.Get
  },
  /**
   * 队列管理/轻渠道队列 队列修改记录
   */
  getAllChannelHistory: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllChannelHistory',
    type: requestType.Get
  },
  /**
   * 案件队列管理-轻渠道详情查看
   */
  viewBusinessMessage: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'viewBusinessMessage',
    type: requestType.Get
  },
}